package com.team4.muchentuchen;

import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class myMainMenu extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_menu);
		final MediaPlayer buttonPress = MediaPlayer.create(this, R.raw.button_click);
		
		Button bOrder = (Button) findViewById (R.id.orderbutton);
		Button bMenu = (Button) findViewById (R.id.menubutton);
		Button bFetch = (Button) findViewById (R.id.fetchbutton);
		Button bnewMap = (Button) findViewById (R.id.Map);
		
		bOrder.setOnClickListener(new View.OnClickListener() { // Created new class
			public void onClick(View v) {
				startActivity(new Intent("com.team4.muchentuchen.MYORDER"));
				buttonPress.start();
			}
		});
		
		bMenu.setOnClickListener (new View.OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent("com.team4.muchentuchen.MYMENU"));
				buttonPress.start();
			}
		});
		
		bFetch.setOnClickListener (new View.OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent("com.team4.muchentuchen.MYFETCH"));
				buttonPress.start();
			}
		});
		
		bnewMap.setOnClickListener (new View.OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent("com.team4.muchentuchen.MAP"));
				buttonPress.start();
			}
		});
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onRestart() {
		// TODO Auto-generated method stub
		super.onRestart();
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
	}

	@Override
	protected void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
	}

	@Override
	protected void onStop() {
		// TODO Auto-generated method stub
		super.onStop();
	}
}
